package util;

import java.sql.ResultSet;
import java.sql.SQLException;

public class Util {
	
	public static void log(String str){
		System.out.println("[LOG] " + str + "\n");
	}
	
	public static void logNL(String str){
		System.out.println("[LOG]");
		System.out.println(str + "\n");
	}
	
	public static int getResultSetRowsNumber(ResultSet rs){
		
		int rows = 0;
		
		try{
			rs.last();
			rows = rs.getRow();
			rs.first();

		}catch(SQLException e){
			e.printStackTrace();
		}
		
		return rows;
	}

}
